package com.zb.entity.system;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.zb.util.annotation.Ignore;

/**
 * Created by luoyp on 2016/6/30.
 */
public class OmsUrlTreeVO implements Serializable
{
	private String id;
	private String name;
	private String url;
	private String parent;
	private String icon;
	private int level;
	private int order;
	private boolean leaf;
	private boolean checked;
	private List<OmsUrlTreeVO> subTree;

	@Override
	public boolean equals(Object obj)
	{
		if (obj == null || !(obj instanceof OmsUrlTreeVO))
			return false;
		return id.equals(((OmsUrlTreeVO) obj).getId());
	}

	public int getLevel()
	{
		return level;
	}

	public void setLevel(int level)
	{
		this.level = level;
	}

	public int getOrder()
	{
		return order;
	}

	public void setOrder(int order)
	{
		this.order = order;
	}

	public boolean isLeaf()
	{
		return leaf;
	}

	public void setLeaf(boolean leaf)
	{
		this.leaf = leaf;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getUrl()
	{
		return url;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}

	public String getParent()
	{
		return parent;
	}

	public void setParent(String parent)
	{
		this.parent = parent;
	}

	public String getIcon()
	{
		return icon;
	}

	public void setIcon(String icon)
	{
		this.icon = icon;
	}

	public List<OmsUrlTreeVO> getSubTree()
	{
		if (subTree == null)
			subTree = new ArrayList<>();
		return subTree;
	}

	public void setSubTree(List<OmsUrlTreeVO> subTree)
	{
		this.subTree = subTree;
	}

	public boolean isChecked()
	{
		return checked;
	}

	public void setChecked(boolean checked)
	{
		this.checked = checked;
	}
}
